// 设计稿尺寸
export const kDesignWidth = 375
export const kDesignHeight = 812
export const kDefaultPadding = 24

// 文档项词数
export const docWordsCountItems: string[] = [
  '200-300',
  '300-400',
  '400-500',
  '500-600',
  '600-800',
  '800+',
]

// ------------------------------
// 一、Constant — 基础常量
// ------------------------------
export const Constant = {
  softwareLicense:
    'https://weixin.qq.com/cgi-bin/readtemplate?lang=en&t=weixin_agreement&s=default&cc=CN',

  jmessageAppKey: '2bb8339fd8bddd6634505ab6',
  jmessageMasterSecret: '6f1be8e4bd1cfa39ea3d8bcd',

  spColorTheme: 'SP_COLOR_THEME',
  spKeyLanguage: 'SP_KEY_LANGUAGE',
  spLastLocation: 'SP_LAST_LOCATION',

  qrcodeTypeBusinessCard: 'QRCODE_TYPE_BUSINESS_CARD',
  qrcodeTypeBusinessChat: 'QRCODE_TYPE_BUSINESS_CHAT',

  mapZoom: 16.0,
  pageSize: 10,

  redPacket: 'redPacket',
  friendCircle: 'friendCircle',
  channels: 'channels',
  channelsComments: 'channelsComments',
  uniapp: 'uniapp',

  maxPhotoWidth: 400,
  maxPhotoHeight: 600,
  minPhotoWidth: 200,
  minPhotoHeight: 200,
} as const

// ------------------------------
// 二、Constants — 业务常量
// ------------------------------
export const Constants = {
  wxAppId: 'wx1243606ac7c231a9',
  wxCorpId: 'wwb84f793433801a7c',
  iosWxUniversalLink: 'https://qingshy.com/legal/app/',

  reportAppId: 'legal',

  sensitiveResult: '',
  vipPrompt:
    '确认购买后，您的iTunes账户将被收取费用...（省略相同内容）',
  materialStatement: '温馨提示：本素材来自互联网用户上传如有侵权请联系客服工作人员',
  haveNoFreeTriaToast: '免费使用次数已用完，成为VIP后可继续使用',
  toolsNoVipToast: '成为VIP会员，立即解锁所有功能',

  customDialogTitleSize: 20,

  createDocContent:
    '      您好，本平台始终维护中国共产党的领导...（省略相同内容）',

  toVipPrompt: '会员用户专用功能，成为会员？',
  rechargeIntegralPrompt: '豆粒不足，请先购买优豆',

  remoteVideo2TextHint:
    '请粘贴X音、X手、X山视频... 分享链接',
  batchDownloadVideoHint: '请粘贴用户主页链接，批量解析下载无水印视频',

  wechatUserChangeAccountNotice:
    '当前账号为微信登录，请注意【微信号】和【手机号】是两个不同的账号...',

  keyAgreedCreateDoc: 'key_agreed_doc',
  keyAgreedUserProtocol: 'key_agreed_user_protocol',

  userProtocolDialogContent:
    '    尊敬的用户朋友您好，感谢一直以来您对问必答法律咨询的信任，我们依据最新的市场监管要求...',

  userProtocolDialogContent2:
    '    1、为您提供上传图片或视频服务...（省略）',

  userCancelDialogContent:
    '注销后，您的相关数据会作以下处理：\n\n    1. 注销后...（省略）',

  payMethodWxPay: 'wxpay',
  payMethodApplePay: 'applePay',
  payMethodAlipay: 'alipay',
} as const

// ------------------------------
// 三、URL 常量
// ------------------------------
export const UrlPath = {
  userProtocolUrl: 'https://qingshy.com/wbdagreement.html',
  privacyUrl: 'https://qingshy.com/wbdprivacy.html',
  serviceUrl: 'https://qingshy.com/wbdservice.html',
  rechargeUrl: 'https://qingshy.com/wbdgold.html',

  reportBaseUrl: 'https://qingshy.com/jlAdvertise',
  imageThumbUrl: '&x-oss-process=image/resize,p_40/format,webp/quality,q_40',

  contactUrl: 'https://work.weixin.qq.com/kfid/kfc7982cd9aa4343c5f',

  reportUploadUrl:
    'https://qingshy.com/jlAdvertise/api/v1/legalAscribe/eventCallBack',

  reportAttributionUrl:
    'https://qingshy.com/jlAdvertise/api/v1/legalSdkAscribe/attribution',

  reportConvertUrl:
    'https://qingshy.com/jlAdvertise/api/v1/legalSdkAscribe/conversionCode',
} as const

// ------------------------------
// 四、枚举（TS 版本）
// ------------------------------

export enum ReportEvent {
  activation = 'activation',
  register = 'register',
  pay = 'pay',
}

export enum FileType {
  image = 'image',
  video = 'video',
  audio = 'audio',
}

export const TimeUnit = {
  oneSecondMs: 1000,
  oneMinuteMs: 60 * 1000,
  oneHourMs: 60 * 60 * 1000,
  oneDayMs: 24 * 60 * 60 * 1000,
} as const
